package com.ruoyi.patient_illness_info.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者患病信息对象 patient_illness_info
 * 
 * @author ruoyi
 * @date 2024-07-07
 */
public class PatientIllnessInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者编号 */
    private Long patientId;

    /** 患者名字 */
    @Excel(name = "患者名字")
    private String patientName;

    /** 病人身份证号 */
    @Excel(name = "病人身份证号")
    private String patientIdCard;

    /** 诊断时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "诊断时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date diagnosisDate;

    /** 诊断结果 */
    @Excel(name = "诊断结果")
    private String diagnosisResult;

    /** 用药编号 */
    @Excel(name = "用药编号")
    private Long medicationId;

    /** 用药名称 */
    @Excel(name = "用药名称")
    private String medicationName;

    /** 用药量/盒 */
    @Excel(name = "用药量/盒")
    private Long dosage;

    /** 是否住院 */
    @Excel(name = "是否住院")
    private String hospitalized;

    /** 住院开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "住院开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date admissionDate;

    /** 住院结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "住院结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dischargeDate;

    /** 登记医生名字 */
    @Excel(name = "登记医生名字")
    private String doctorName;

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setPatientIdCard(String patientIdCard) 
    {
        this.patientIdCard = patientIdCard;
    }

    public String getPatientIdCard() 
    {
        return patientIdCard;
    }
    public void setDiagnosisDate(Date diagnosisDate) 
    {
        this.diagnosisDate = diagnosisDate;
    }

    public Date getDiagnosisDate() 
    {
        return diagnosisDate;
    }
    public void setDiagnosisResult(String diagnosisResult) 
    {
        this.diagnosisResult = diagnosisResult;
    }

    public String getDiagnosisResult() 
    {
        return diagnosisResult;
    }
    public void setMedicationId(Long medicationId) 
    {
        this.medicationId = medicationId;
    }

    public Long getMedicationId() 
    {
        return medicationId;
    }
    public void setMedicationName(String medicationName) 
    {
        this.medicationName = medicationName;
    }

    public String getMedicationName() 
    {
        return medicationName;
    }
    public void setDosage(Long dosage) 
    {
        this.dosage = dosage;
    }

    public Long getDosage() 
    {
        return dosage;
    }
    public void setHospitalized(String hospitalized) 
    {
        this.hospitalized = hospitalized;
    }

    public String getHospitalized() 
    {
        return hospitalized;
    }
    public void setAdmissionDate(Date admissionDate) 
    {
        this.admissionDate = admissionDate;
    }

    public Date getAdmissionDate() 
    {
        return admissionDate;
    }
    public void setDischargeDate(Date dischargeDate) 
    {
        this.dischargeDate = dischargeDate;
    }

    public Date getDischargeDate() 
    {
        return dischargeDate;
    }
    public void setDoctorName(String doctorName) 
    {
        this.doctorName = doctorName;
    }

    public String getDoctorName() 
    {
        return doctorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("patientName", getPatientName())
            .append("patientIdCard", getPatientIdCard())
            .append("diagnosisDate", getDiagnosisDate())
            .append("diagnosisResult", getDiagnosisResult())
            .append("medicationId", getMedicationId())
            .append("medicationName", getMedicationName())
            .append("dosage", getDosage())
            .append("hospitalized", getHospitalized())
            .append("admissionDate", getAdmissionDate())
            .append("dischargeDate", getDischargeDate())
            .append("doctorName", getDoctorName())
            .toString();
    }
}
